package com.boyunv.mediator.example01;
/*
 *@description
 *  抽象同事类
 *@author boyunv
 *@create 2023/9/10 9:33
 *@version 1.0
 */

import lombok.Getter;

public abstract class Colleague {
    @Getter
    private Mediator mediator;
    
    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }
    
    //同事件进行交互的方法
    public abstract void exec(String key);
}
